package com.example.a2007dou_shop

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.example.a2007dou_shop.databinding.ActivityDetailBinding
import com.example.a2007dou_shop.entity.VideosEntity
import com.example.a2007dou_shop.mvvm.BaseViewActivity

@Route(path = "/app/DetailActivity")
class DetailActivity : BaseViewActivity<ActivityDetailBinding>() {

    @Autowired
    lateinit var video:VideosEntity

    override fun getLayout(): Int  = R.layout.activity_detail

    override fun initView() {
        ARouter.getInstance().inject(this)
        binding.gsy.setUp(video.videopath,true,"")
        binding.gsy.startPlayLogic()

    }

    override fun initData() {

    }

}